/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.site-header {
  background-color: #4a89dc;
  color: white;
  padding: 1rem;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.header-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: #f0f0f0;
}

.content {
  flex: 1;
  padding: 2rem;
  margin-top: 70px;
  margin-bottom: 70px;
}

.site-footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.not-found-container {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.not-found-container h1 {
  color: #e74c3c;
  margin-bottom: 2rem;
}

.not-found-go-to-home {
  background-color: #4a89dc;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.not-found-go-to-home:hover {
  background-color: #357bd8;
}

.home-go-products-link,
.home-go-product-portal-link,
.home-go-user-portal-link,
.home-go-wish-list,
.home-go-order-portal-link {
  display: inline-block;
  background-color: #4a89dc;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-right: 15px;
}

.home-go-products-link:hover,
.home-go-product-portal-link:hover,
.home-go-user-portal-link:hover,
.home-go-wish-list:hover,
.home-go-order-portal-link:hover {
  background-color: #357bd8;
}

.home-go-product-portal-link,
.home-go-user-portal-link,
.home-go-order-portal-link {
  background-color: #e74c3c;
}

.home-go-product-portal-link:hover,
.home-go-user-portal-link:hover,
.home-go-order-portal-link:hover {
  background-color: #c0392b;
}

.home-go-wish-list {
  background-color: #e67e22;
}

.home-go-wish-list:hover {
  background-color: #d35400;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  padding: 15px 15px 5px 15px;
  color: #333;
}

.product-price {
  font-size: 16px;
  color: #4a89dc;
  font-weight: bold;
  padding: 5px 15px 15px 15px;
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px;
}

.product-detail-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
}

.product-detail-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.product-detail-price {
  font-size: 24px;
  color: #4a89dc;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-quantity {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.product-description {
  padding: 0 30px 30px 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.product-not-found {
  text-align: center;
  padding: 50px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.product-not-found h2 {
  color: #e74c3c;
  margin-bottom: 20px;
}

.back-to-products {
  display: inline-block;
  background-color: #4a89dc;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.back-to-products:hover {
  background-color: #357bd8;
}

.login-form {
  max-width: 400px;
  margin: 30px auto;
  padding: 25px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form div {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.login-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.login-btn {
  width: 100%;
  background-color: #4a89dc;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #357bd8;
}

#loginError {
  margin-top: 15px;
  padding: 10px;
  background-color: #ffebee;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}